package com.spikything.utils {
	
	import com.gsolo.encryption.SHA1;
	
	public class Checksum {
		
		private static const KEY :Number = 5673192;
		
		public function Checksum () {}
		
		public static function getHash (iv:Number):Object {
			
			//var date:Date = new Date();
			//var iv:Number = date.getMilliseconds();
			
			var input:String = (iv * KEY).toString();
			var output:String = SHA1.b64_sha1(input);
			
			return { key: iv, hash: output};
			
		}
		
	}
	
}